﻿/*****************************************************************************  

 Version: 0.1
 Website: http://www.visuagile.com/
 
 Copyright (c) Yoganand R. All rights reserved.
 For continued development and updates, visit http://yogsbreath.net
 
 ******************************************************************************/
#region Imports

using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;

using VisualAgile.IBLL;
using VisualAgile.IDAL;
using VisualAgile.Model;

#endregion


namespace VisualAgile.BLL
{
    public class FeelingsManager : BaseManager<Feelings>, IFeelingsManager
    {
        #region Properties

        public IFeelingsDao FeelingsDao { get; set; }

        #endregion

        protected override IBaseDao<Feelings> getBaseDAO()
        {
            return FeelingsDao;
        }

        /// <summary>
        /// Create a user (the default value contains the return)
        /// </summary>
        /// <returns></returns>
        public Feelings NewFeeling()
        {
            var Feelings = new Feelings();

            //System configuration can be used
            Feelings.CreateTime = DateTime.Now;            

            return Feelings;
        }

        /// <summary>
        /// Access to Feelingss
        /// </summary>
        /// <param name="ProjectName">project Id</param>
        /// <returns></returns>
        public IList GetByUser(string UserID)
        {
            return FeelingsDao.FindByUser(UserID);
        }
    }
}
